const path = require("path");
const target = "";

function resolve(dir) {
  return path.join(__dirname, dir);
}
module.exports = {
  transpileDependencies: ["uview-ui"],
  publicPath: "/h5/",
  // devServer: {
  //   port: 8081,
  //   disableHostCheck: true,
  //   proxy: {
  //     "/app-api/": {
  //       target,
  //       changeOrigin: true,
  //       secure: false,
  //     },
  //   },
  // },
  chainWebpack: (config) => {
    config.resolve.alias
      .set("@images", resolve("src/static/images"))
      .set("@styles", resolve("src/static/scss"));
  },
};
